default:
	go build -o caproductor


install: 
	-\cp -r default.ini $(PREFIX)/etc/caproductor/default.ini
	-\cp -r caproductor $(PREFIX)/usr/bin/caproductor
	-\cp -r acme.sh $(PREFIX)/usr/bin/acme.sh
	-\cp -r caproductor.init $(PREFIX)/etc/init.d/caproductor

rpm: install
	rpmbuild -bb caproductor.spec

release:rpm
	ssh root@192.168.115.237 "mkdir -p /var/www/html/release/caproductor"
	scp *.rpm root@192.168.115.237:/var/www/html/release/caproductor


clean:
	rm -f caproductor *.rpm
